package com.cskaoyan.bean.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class Collect {
    private Integer id;

    private Integer userId;

    private Integer valueId;

    private Byte type;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;


    @DateTimeFormat
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getAddTime() {
        return addTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getUpdateTime() {
        return updateTime;
    }


    public Collect() {
    }

    public Collect(Integer id, Integer userId, Integer valueId, Byte type, Date addTime, Date updateTime, Boolean deleted) {
        this.id = id;
        this.userId = userId;
        this.valueId = valueId;
        this.type = type;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }

}